wayland: Only 'moved-to-rect' if move_to_rect() was used
authorJonas Ådahl <jadahl@gmail.com>
Fri, 16 Sep 2016 07:42:37 +0000 (15:42 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 30 Sep 2016 10:40:30 +0000 (06:40 -0400)
Don't emit the 'moved-to-rect' signal if move_to_rect() was used.

https://bugzilla.gnome.org/show_bug.cgi?id=771516

gdk/wayland/gdkwindow-wayland.c

index 7dbb97951db5f2a45ef92baca479fd07b1f2211d..3e0abb12e633e15e63cbb89d600bd619feac156f 100644 (file)
@@ -1509,6 +1509,9 @@ xdg_popup_configure (void                 *data,
 
   g_return_if_fail (impl->transient_for);
 
+  if (impl->position_method != POSITION_METHOD_MOVE_TO_RECT)
+    return;
+
   calculate_moved_to_rect_result (window, x, y, width, height,
                                   &flipped_rect,
                                   &final_rect,